package com.cassio.guarapari.entity;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Preco implements Serializable {

	private static final long serialVersionUID = 4134605562615183499L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	private Boolean pacote;

	@Temporal(TemporalType.DATE)
	@Column(nullable = true)
	private Calendar inicio;

	@Temporal(TemporalType.DATE)
	@Column(nullable = true)
	private Calendar fim;

	@Column(nullable = true)
	private Double valor;

	@ManyToOne(optional=false)
	private Imovel imovel;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Boolean getPacote() {
		return pacote;
	}

	public void setPacote(Boolean pacote) {
		this.pacote = pacote;
	}

	public Calendar getInicio() {
		return inicio;
	}

	public void setInicio(Calendar inicio) {
		this.inicio = inicio;
	}

	public Calendar getFim() {
		return fim;
	}

	public void setFim(Calendar fim) {
		this.fim = fim;
	}

	public Double getValor() {
		return valor;
	}

	public void setValor(Double valor) {
		this.valor = valor;
	}

	public Imovel getImovel() {
		return imovel;
	}

	public void setImovel(Imovel imovel) {
		this.imovel = imovel;
	}
}
